How much ram to be able to convert large (5-6MB) jpegs? [closed]

Posted by cosmicbdog on Server Fault See other posts from Server Fault or by cosmicbdog
Published on 2012-12-16T15:42:16Z Indexed on 2012/12/16 17:06 UTC
Read the original article Hit count: 157

Filed under:
|
|

I've got a project where we want to be processing large jpegs (5-6MB) with apache and php (using GD library).

My understanding is that the server converts the image into a BMP making it quite ram heavy and currently we're unable to do it with our 1gb of memory.

Here's the error we get:

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 17408 bytes)

How much ram should we be looking at running with to process images of this size?

Edit:

As Chris S the purist highlighted below, my post is apparently vague.

I am doing the most basic and common manipulation of an image, say turning it from a 4352px x 3264px jpg of 5mb in size, to a 900px x 675px file.

© Server Fault or respective owner

Related posts about linux

Related posts about php